import request from '@/utils/aliyunRequest';

const applicationApi = {};

applicationApi.getType = (type) => {
	return request({
		url: '/aliyun-api/application/get-type?type=' + type,
		method: 'get',
	})
}
applicationApi.renderTemplateContent = (id) => {
	return request({
		url: '/aliyun-api/application/render-template/' + id,
		method: 'put',
	})
}
applicationApi.list = () => {
	return request({
		url: '/aliyun-api/application/list',
		method: 'get',
	})
}
applicationApi.page = (params) => {
	return request({
		url: '/aliyun-api/application/page',
		method: 'get',
		params: params,
	})
}
applicationApi.add = (params) => {
	return request({
		url: '/aliyun-api/application',
		method: 'post',
		data: params,
	})
}
applicationApi.update = (params) => {
	return request({
		url: '/aliyun-api/application',
		method: 'put',
		data: params,
	})
}
applicationApi.get = (id) => {
	return request({
		url: '/aliyun-api/application/' + id,
		method: 'get',
	})
}
applicationApi.delete = (id) => {
	return request({
		url: '/aliyun-api/application/' + id,
		method: 'delete',
	})
}


export default applicationApi